package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.BuyCartBean;
import com.project.bean.BuyDetailBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IBuyDetailMapper extends BaseMapper<BuyDetailBean> {
    /**
     * 按购物车集合添加订单明细
     * @param buyId 购物车编号
     * @param buyCartList
     */
    public void addByBuyCartList(@Param("buyId") Integer buyId,@Param("buyCartList") List<BuyCartBean> buyCartList);

    /**
     * 按采购订单编号查询采购明细
     * @param buyId 采购订单编号
     * @return 采购明细集合
     */
    public List<BuyDetailBean> findByBuy(Integer buyId);

}
